package com.asset.dispoal.file.appoint.service;


import com.asset.dispoal.file.appoint.api.FileAppointService;
import com.asset.dispoal.file.appoint.dto.AppointImportRequest;
import com.asset.dispoal.file.appoint.dto.AppointWithdrawalRequest;
import com.asset.dispoal.file.appoint.service.command.FileAppointImportCommand;
import com.asset.dispoal.file.appoint.service.command.FileAppointWithdrawlCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.mhuang.pacebox.springboot.protocol.Result;

@Service
public class FileAppointServiceImpl implements FileAppointService {

    @Autowired
    FileAppointWithdrawlCommand fileAppointWithdrawlCommand;

    @Autowired
    FileAppointImportCommand fileAppointImportCommand;

    @Override
    public Result withdrawl(AppointWithdrawalRequest request) {
        return fileAppointWithdrawlCommand.execute(request);
    }

    @Override
    public Result importAppoint(AppointImportRequest request) {
        return fileAppointImportCommand.execute(request);
    }
}
